package com.ruoyi.server.api.test;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName DemoController
 * @Description TODO
 * @Author 17179
 * @Date 2024/6/21 9:46
 **/
@RestController
@RequestMapping("/demo")
@Anonymous
@CrossOrigin
public class DemoController {

    @GetMapping("/demo")
    public AjaxResult test(){
        return AjaxResult.success("测试成功");
    }
}
